#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "rngs.h"

int main(int argc, char **argv)
{
	int flag = 0;
	
	int c1 = 1;
	int c2 = 2;
	int c3 = 3;
	int c4 = 4;
	int c5 = 5;
	int c6 = 6;
	int c7 = 7;
	int c8 = 8;
	int c9 = 9;
	int c10 = 10;
	
	int *test_cards;
	
	test_cards = kingdomCards(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10);
	
	if(test_cards[0] != c1)
	{
		printf("Unittest3: Incorrect Card: 1\n");
		flag++;
	}
	
	if(test_cards[1] != c2)
	{
		printf("Unittest3: Incorrect Card: 2\n");
		flag++;
	}
	
	if(test_cards[2] != c3)
	{
		printf("Unittest3: Incorrect Card: 3\n");
		flag++;
	}
	
	if(test_cards[3] != c4)
	{
		printf("Unittest3: Incorrect Card: 4\n");
		flag++;
	}
	
	if(test_cards[4] != c5)
	{
		printf("Unittest3: Incorrect Card: 5\n");
		flag++;
	}
	
	if(test_cards[5] != c6)
	{
		printf("Unittest3: Incorrect Card: 6\n");
		flag++;
	}
	
	if(test_cards[6] != c7)
	{
		printf("Unittest3: Incorrect Card: 7\n");
		flag++;
	}
	
	if(test_cards[7] != c8)
	{
		printf("Unittest3: Incorrect Card: 8\n");
		flag++;
	}
	
	if(test_cards[8] != c9)
	{
		printf("Unittest3: Incorrect Card: 9\n");
		flag++;
	}
	
	if(test_cards[9] != c10)
	{
		printf("Unittest3: Incorrect Card: 10\n");
		flag++;
	}

	printf("Unittest3: function kingdomCards() returned %d error(s)\n", flag);
		
	return 0;

}